import { createApp } from "vue";
import App from "./App.vue";

// 导入全局样式
import "@cp-ranmo/theme-chalk/src/index.scss";
// 导入对应组件
import Icon from "@cp-ranmo/components/icon";
import Tree from "@cp-ranmo/components/tree";
import Checkbox from "@cp-ranmo/components/checkbox";
import Button from "@cp-ranmo/components/button";
import Input from "@cp-ranmo/components/input";
import { FormItem, Form } from "@cp-ranmo/components/form";

const plugins = [Icon, Tree, Checkbox, Button, Input, FormItem, Form];

const app = createApp(App);

plugins.map(plugin => app.use(plugin)); // 全局引入插件

app.mount("#app");
